import request from '@/utils/request'

// 查询轮播图管理-app列表
export function listCmsBanners(query) {
  return request({
    url: '/demo/cmsBanners/list',
    method: 'get',
    params: query
  })
}

// 查询轮播图管理-app详细
export function getCmsBanners(id) {
  return request({
    url: '/demo/cmsBanners/' + id,
    method: 'get'
  })
}

// 新增轮播图管理-app
export function addCmsBanners(data) {
  return request({
    url: '/demo/cmsBanners',
    method: 'post',
    data: data
  })
}

// 修改轮播图管理-app
export function updateCmsBanners(data) {
  return request({
    url: '/demo/cmsBanners',
    method: 'put',
    data: data
  })
}

// 删除轮播图管理-app
export function delCmsBanners(id) {
  return request({
    url: '/demo/cmsBanners/' + id,
    method: 'delete'
  })
}

// 导出轮播图管理-app
export function exportCmsBanners(query) {
  return request({
    url: '/demo/cmsBanners/export',
    method: 'get',
    params: query
  })
}